package com.example.demo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatUser {
    private String username;
    private String avatar;
    private boolean online;
    
    public ChatUser(User user) {
        this.username = user.getUsername();
        this.avatar = user.getProfileImage();
        this.online = true;
    }
} 